insuranceApp.factory('insuranceHttp', ['httpConfig', '$resource', function (httpConfig, $resource) {
    return $resource('', {}, {
        create: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/channelApply/create',
            isArray: false
        },
        checkUser: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/spreadInsurance/checkUser',
            isArray: false
        },
        openAccount: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: 'https://pab.cvssp.cn/pingan/toOpenAccount',
            isArray: false
        },
        createOrder: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: '/spreadInsurance/createOrder',
            isArray: false
        }
    })
}])
